const mongoose = require("../db/config"),
    Schema = mongoose.Schema;

let chat = new Schema({
    from: { type: Schema.Types.ObjectId, ref: "user" },
    time: { type: Date },
    isImg: { type: Boolean, default: false },
    isVoice: { type: Boolean, default: false },
    inner: String
});

module.exports = mongoose.model("chat", chat);
